package org.aileen.captcha.facade;

//门面模式->实现开和关所有灯
public class FacadeClient {
    private Light hallLight = new HallLight();
    private Light bedRoomLight = new BedRoomLight();
    private Light livingRoomLight = new LivingRoomLight();

    public void allLightOn(){
        hallLight.on();
        bedRoomLight.on();
        livingRoomLight.on();


    }

    public void allLightOff(){
        hallLight.off();
        bedRoomLight.off();
        livingRoomLight.off();

    }
}
